/**
 * @filename:CourseExamPaperDao Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.repository;

import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import com.znufe.exam.domain.CourseExamPaper;

/**   
 *  
 * @Description:  课程表——DAO
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Mapper
public interface CourseExamPaperMapper {
	
	CourseExamPaper selectByPrimaryKey(Integer id);
	
	int deleteByPrimaryKey(Integer id);
	
	int insertSelective(CourseExamPaper courseExamPaper);
	
	int updateByPrimaryKeySelective(CourseExamPaper courseExamPaper);
	
	List<CourseExamPaper> queryCourseExamPaperList(CourseExamPaper courseExamPaper);

    /**
     * 获取课程包含的所有试卷ID
     * @param courseId
     * @return
     */
	List<Integer> getAllExamPaperId(Integer courseId);

	int deleteByCourseId(Integer courseId);
}
